@import '../style/theme/color';

:host {
  display: block;
}

.devui-pagination {
  .page-size {
    display: inline-block;
    max-width: 100px;
    vertical-align: middle;
    margin: 0 10px 0 0;
    position: relative;
    &.page-size-sm {
      max-width: 60px;
    }
    &.page-size-lg {
      max-width: 100px;
    }
  }

  .total-size {
    display: inline-block;
    position: relative;
    margin: 0 20px 0 0px;
  }

  .pagination {
    display: inline-block;
    margin: 20px 0;

    > .disabled > a,
    > .disabled > a:hover,
    > .disabled > a:focus {
      cursor: not-allowed;
    }

    li {
      display: inline;
    }
    li.disabled a {
      background: $white;
      opacity: 0.3;
    }
    li:not(.disabled) {
      cursor: pointer;
      a:hover, span:hover, a:focus, span:focus {
        background: $hover-content;
      }

      &.active a {
        &:hover, &:focus, &:active {
          background: $focus1;
        }
      }

      a.pagination-link:hover svg g polygon {
        fill: $focus1;
      }


      a.pagination-link-lite:hover {
        border: 1px solid $gray1 !important;
      }
    }

    .pagination-link {
      svg {
        vertical-align: middle;
      }
    }
    .pagination-link-lite {
      border: 1px solid transparent !important;
      border-radius: 2px;
    }

   
  }

  .pagination > li > a {
    margin-left: 5px;
    padding: 5px 12px;
    line-height: 1.42857143;
  }

  .pagination-sm > li > a {
    padding: 4px 10px;
    line-height: 1.66666667;
    font-size: 12px;
  }

  .pagination-lg > li > a {
    padding: 9px 17px;
    font-size: 16px;
    line-height: 1.3333333;
  }

  .pagination > li:first-child > a,
  .pagination > li:last-child > a {
    padding: 4px 11px;
    border-radius: 1px;
    border-width: 1px;
    border-style: solid;
  }

  .pagination-sm > li:first-child > a,
  .pagination-sm > li:last-child > a {
    padding: 3px 4px;
  }

  .pagination-lg > li:first-child > a,
  .pagination-lg > li:last-child > a {
    padding: 8px 16px;
  }

  .jump-container {
    display: inline-block;
    position: relative;
    margin: 0 10px 0 10px;
    .devui-input {
      display: inline-block;
      width: 50px;
      margin-right: 5px;
    }
  }

  .jump-button {
    display: inline-block;
    border-width: 1px;
    border-style: solid;
    vertical-align: bottom;
    border-radius: 1px;
    cursor: pointer;
    .go {
      width: 0;
      height: 0;
      border-top-style: solid;
      border-left-style: solid;
      border-bottom-style: solid;
    }
  }

  .jump-size-default {
    width: 32px;
    height: 32px;
    .go {
      border-top-width: 8px;
      border-left-width: 8px;
      border-bottom-width: 8px;
      margin: 8px auto;
    }
  }

  .jump-size-sm {
    width: 30px;
    height: 30px;
    .go {
      border-top-width: 6px;
      border-left-width: 6px;
      border-bottom-width: 6px;
      margin: 9px auto;
    }
  }

  .jump-size-lg {
    width: 34px;
    height: 34px;
    .go {
      border-top-width: 12px;
      border-left-width: 12px;
      border-bottom-width: 12px;
      margin: 5px auto;
    }
  }
  .lite-paginator {
    display: inline-block;
    margin-right: 5px;
    width: 100px;
  }
  
  .pagination-config {
    color: $dark1;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin: 0 5px;
  
    .setup-icon {
      line-height: 30px;
      cursor: pointer;
      display: flex;
    }
  
    .config-container {
      padding: 5px 0;
      box-shadow: 0 0 6px 1px $dark-1-boxshadow;
      border-radius: 2px;
      width: 150px;
      background-color: $white;
      line-height: 26px;
      position: absolute;
      left: -136px;
      top: 28px;
      cursor: auto;
      z-index: 1000;
      -moz-user-select: none;
      -webkit-user-select: none;
      -ms-user-select: none;
      user-select: none;
  
      .pagination-config-item.page-size-config {
        border-bottom: none;
      }
  
      .pagination-config-item {
        padding-bottom: 8px;
        padding-top: 5px;
        border-bottom: 1px solid $gray2;
  
        .config-item-title {
          color: $dark2;
          padding-left: 10px;
          font-size: 12px;
          line-height: 22px;
        }
  
        .page-number {
          padding-left: 10px;
          margin-top: 4px;
          display: flex;
          display: -ms-flexbox;
  
          div {
            color: $dark1;
            cursor: pointer;
            border-top: 1px solid $gray1;
            border-bottom: 1px solid $gray1;
            border-right: 1px solid $gray1;
            text-align: center;
            height: 26px;
            width: 26px;
          }
  
          div:hover {
            background-color: $hover-content;
          }
  
          div:first-child {
            border-left: 1px solid $gray1;
          }
  
          .page-number div.choosed, .choosed {
            color: $focus1;
            background-color: $focus3 !important;
            cursor: auto !important;
          }
        }
      }
    }
}
}
